from util.log import create_logger, create_email_logger

logger = create_logger('test', log_level='DEBUG')
logger.error('display error...')
logger.info('display info...')
logger.debug('no display...')


email_logger = create_email_logger('test_email', credentials=('singxle@163.com', 'Samgu@0!2%'), subject='test_email')
email_logger.info('test')